package cn.com.baozun.sany.api;

import cn.com.baozun.sany.workbench.application.publisher.OnlineChangePublisher;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @title: ApiController
 * @description:
 * @author: guan.xin
 * @create: 2021-06-07 09:39
 * @since: JDK8
 */
@RestController
public class ApiController {

    @Resource
    private OnlineChangePublisher onlineChangePublisher;

    @GetMapping("/sendMessage")
    public String sendMessage() {
        onlineChangePublisher.sendMessage();
        return "success";
    }
}
